package com.decelo.jpa.service;

import com.decelo.jpa.entity.sys.User;
import com.decelo.jpa.result.PageResult;
import com.decelo.jpa.result.Result;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.PageRequest;

import java.util.List;
import java.util.Map;
import java.util.Set;

/**
 * 服务层service
 * @author :JronZhang Create_Time:2018-12-30 15:00
 */
public interface UserService {
    public List<User> queryAll();

    public boolean edit(User user);

    public Page<User> queryParams(PageRequest request);

    public List<User> queryByPersistContext();

    public List<User> queryByName(String name);

    public PageResult<User> queryByparams(Map<String,Object> params);

    public Result getUser(String username, String password);

    public User getUserByName(String name);

    public Set<String> queryResourcesByName(String principal);

    public Set<String> findRolesByName(String name);

    public Set<String> findMenukeyByName(String name);
}
